package com.zr.bili.controller;

import com.zr.bili.entity.User;
import com.zr.bili.entity.Video;
import com.zr.bili.service.UserService;
import com.zr.bili.service.VideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author zhangrui
 * @date 2020-04-11 22:32
 */
@RequestMapping("video")
@RestController
public class VideoController {
    @Autowired
    private VideoService videoService;

    @PostMapping("/inser/one")
    public int insertVideo(Video video){
        return videoService.insertVideoService(video);
    }
}
